Fix a leak occurring at netif_map(). The problem raised after allocating
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 28 Dec 2005 14:17:04 +0000 (15:17 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 28 Dec 2005 14:17:04 +0000 (15:17 +0100)
commit8be86755a9b8325684b0d5db4a539c50713bdf27
treed380fedaa8ea2aba6b4af8385ee15dfcfd75a5ae
parent5fb7e2447325e277340ead7e52e099b4e0f167c3
Fix a leak occurring at netif_map(). The problem raised after allocating
both {rx,tx}_comms_area, and one (and just one) of them failed. As we
were
doing a single test for both, returning would leave one of them
allocated.

Signed-off-by: Glauber de Oliveira Costa <glommer@br.ibm.com>
linux-2.6-xen-sparse/drivers/xen/netback/interface.c